export function totalNum(list) {
    return list.reduce((num, item) => num + item.price, 0)
}

export function FixedFloat(num, decimal) {
    return num.toFixed(decimal)
}